<%--<%@ tag import="com.biz.primus.base.tags.Layout" %>--%>
<%@ tag import="com.biz.primus.base.tags.CheckType" %>
<%@ tag pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ attribute name="_title" required="true" type="java.lang.String" %>
<%@ attribute name="_name" required="true" type="java.lang.String" %>
<%@ attribute name="_id" required="true" type="java.lang.String" %>
<%@ attribute name="_placeholder" required="false" type="java.lang.String" %>
<%@ attribute name="_value" required="false" type="java.lang.String" %>
<%@ attribute name="_required" required="false" type="java.lang.Boolean" %>
<%@ attribute name="_layout" required="false" type="com.biz.primus.base.tags.Layout" %>
<%@ attribute name="_type" required="false" type="com.biz.primus.base.tags.CheckType" %>
<%@ attribute name="_inputClass" required="false" type="java.lang.String" %>
<%@ attribute name="_inputCol" required="false" type="java.lang.Integer" %>
<%@ attribute name="_titleCol" required="false" type="java.lang.Integer" %>


<%--<c:set var="layout" value="<%=layout==null?Layout.single:layout%>"/>--%>
<c:set var="_type" value="<%=_type==null?CheckType.text:_type%>"/>
<c:if test="${empty _inputClass}">
    <c:set var="_inputClass" value="${_layout.inputClass}"/>
</c:if>
<label class="col-sm-${_titleCol==null?_layout.titleCol:_titleCol} control-label no-padding-right" for="${_id}"> <c:out
        value="title"/> </label>
<div class="col-sm-${_inputCol==null?_layout.inputCol:_inputCol} form-group">
    <div class="col-xs-12">
        <input type="text" name="${_name}" id="${_id}" placeholder="${_placeholder}" class="${_inputClass}"
               value="${_value}" validator="${_type}">
    </div>
</div>